<?php
/**
 * Theme's Header
 *
 *
 * @file           header.php
 * @package        WordPress 
 * @subpackage     Shell 
 * @author         liukai
 * @copyright      2012 - 2013 ThemeID, 2013 DevWP
 * @license        license.txt
 * @version        Release: 1.0
 * @filesource     wp-content/themes/yixinqi/header.php
 * @link           http://codex.wordpress.org/Theme_Development#Document_Head_.28header.php.29
 * @since          available since Release 1.0
 */
?>
<!doctype html>


<head>
<meta charset="<?php bloginfo('charset'); ?>" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title><?php wp_title('|', true, 'right'); ?><?php bloginfo('name'); ?></title>
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" />
<script type="text/javascript" src="<?php bloginfo('siteurl'); ?>/wp-includes/js/jquery/jquery.js?ver=1.8.3" ></script>
<script type="text/javascript" src="<?php bloginfo('siteurl'); ?>/wp-includes/js/jquery/jquery.flexslider-min.js?ver=1.0" ></script>
</head>
<body <?php body_class(); ?>>
<div id="header" class="head">	
    <div class="layout nav_top">
    <?php $header_image = get_header_image();
    	if(!empty($header_image)):?>
        <h1 class="logo">
            <a href="<?php echo home_url('/'); ?>"><img src="<?php echo esc_url( $header_image ); ?>" width="<?php if(function_exists('get_custom_header')) { echo get_custom_header() -> width;} else { echo HEADER_IMAGE_WIDTH;} ?>" height="<?php if(function_exists('get_custom_header')) { echo get_custom_header() -> height;} else { echo HEADER_IMAGE_HEIGHT;} ?>" alt="<?php bloginfo('name'); ?>" /></a>
        </h1>
        <?php endif;?>
    </div>
    <div class="search-box"></div>
    <div class="nav">
        <div class="mainNav">
        	<?php if(has_nav_menu('header_menu','shell')){
        		wp_nav_menu(array(
        			'container'=>'',
        		    'container_id'=>'header_menu',
        		    'menu_class'=>'menu',
        		    'theme_location'=>'header_menu',
        		    'depth' => 1
        		));
        	}
        	else{?>
        	<ul class="menu">
                    <li><a href="<?php echo home_url(); ?>/">Home</a></li>
                    <?php wp_list_pages('title_li='); ?>
                </ul><!-- end of .menu -->
        	<?php }?>
        </div>
    </div>
</div>
